package main;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

/**
 * 
 *
 * @author xlouwette
 * @version $Revision:$ $Date:$ $Author:$
 */

public class SRTHelp extends JFrame {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    
    public SRTHelp(){
        JTabbedPane tabbedPane = new JTabbedPane();
        final Image b = getToolkit().getImage("photo.jpeg") ;
        JPanel panel = new JPanel(){
            /**
             * 
             */
            private static final long serialVersionUID = 1L;

            public void paintComponent(Graphics g)
            { 
            super.paintComponent(g) ;
            int x=10, y=10 ;
            if(b != null)
            {g.drawImage (b, x, y, this);System.out.println("photo");}
            } 
        };
        
        
        //panel.add(b)
        tabbedPane.addTab("Tab 4",panel);
        this.add(tabbedPane);
        this.setPreferredSize(new Dimension(250,250));
        this.pack();
        this.setVisible(true);


    }

    
}
